<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>详情</title>

</head>

<body>
	<form action="AddressServlet?action=save" method="post">
		<!-- GET的场合，必须加hidden保存action的值,post不用 -->
		<input type="hidden" name="action" value="save">
		ID：<input type="text" name="id" value="${addr.id}" readonly="readonly">
		<br> 
		地址：<input type="text" name="address" value="${addr.address}">
		<br> 
		<!-- 需要做类型检测（略） -->
		联系电话：<input type="text" name="tel" value="${addr.tel}">
		<br>
		<input type="submit" value="保存">
	</form>
	${msg}
</body>
</html>
